$(function(){

	// add bootstrap style file
	addCssLink('${basePath}/plugins/bootstrap-3.3.5/bootstrap.css');
	// add bootstrap style file
	addCssLink('${basePath}/plugins/bootstrap-3.3.5/dashboard.css');
	// add flat ui style file
	addCssLink('${basePath}/plugins/flat-ui/css/flat-ui.css');
	// add bootstrap datetimepicker style file
	addCssLink('${basePath}/plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css');


	//-----------------------------------add plugins js file start ----------------------------------
	//plugins  angular
	addJsLink('${basePath}/plugins/angular-1.4.7/angular.js');
	addJsLink('${basePath}/plugins/angular-1.4.7/angular-route.js');

	//plugins bootstrap
	addJsLink('${basePath}/plugins/bootstrap-3.3.5/bootstrap.js');

	//plugins flat-ui
	addJsLink('${basePath}/plugins/flat-ui/js/flat-ui.js');

	//plugins bootstrap datetimepicker
	addJsLink('${basePath}/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js');
	addJsLink('${basePath}/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.fr.js');

	//------------------------------------add plugins js file end---------------------------------






	//------------------------------------and project js file start --------------------------------
	addJsLink('${basePath}/js/frame-app.js');
	addJsLink('${basePath}/js/frame-route.js');
	addJsLink('${basePath}/js/paging/tm.pagination.js');

	addJsLink('${basePath}/js/business/activityRegistCtrl.js');
	addJsLink('${basePath}/js/business/activityResourceCtrl.js');
	//------------------------------------and project js file end ---------------------------------


	//------------------------add css link function
	function addCssLink(cssURL){
	        var linkTag = $('<link rel="stylesheet" type="text/css" href="' + cssURL + '" />'); 
	        $($('head')[0]).append(linkTag);
    	}

    	//add js link function
    	function addJsLink(jsURL){
	        var linkTag = $('<script type="text/javascript"  src="'+jsURL+'"></script>'); 
	        $($('head')[0]).append(linkTag);
    	}
	
	
} ); 
